package com.study;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.env.ConfigurableEnvironment;
import org.springframework.core.env.Environment;

@SpringBootApplication(exclude=DataSourceAutoConfiguration.class)
@EnableEurekaClient
public class UserApp {
	
	public static void main(String[] args) {
		SpringApplication application = new SpringApplication(UserApp.class);
		ConfigurableApplicationContext context = application.run(args);
        ConfigurableEnvironment env = context.getEnvironment();
        //默认是：us-east-1
        System.out.println("default-eureka-client-region: " + env.getProperty("eureka.client.region "));


        System.out.println("======================user：end=======================");
	}

}
